package com.qms.qep.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;

/**
 * 维修工单对象 repair_order
 * 
 * @author RepairOrder
 */
public class RepairOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 工单编号 */
    @Excel(name = "工单编号")
    private String orderNo;

    /** 缺陷记录ID */
    @Excel(name = "缺陷记录ID")
    private Integer defectRecordId;

    /** 维修类型 */
    @Excel(name = "维修类型")
    private String repairType;

    /** 维修级别 */
    @Excel(name = "维修级别")
    private String repairLevel;

    /** 分配给 */
    @Excel(name = "分配给")
    private String assignTo;

    /** 计划日期 */
    @Excel(name = "计划日期")
    private String plannedDate;

    /** 实际日期 */
    @Excel(name = "实际日期")
    private String actualDate;

    /** 维修结果 */
    @Excel(name = "维修结果")
    private String repairResult;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    // 扩展字段
    /** 缺陷位置 */
    private String location;
    
    /** 缺陷严重程度 */
    private String severity;
    
    /** 缺陷图片URL */
    private String imageUrl;
    
    /** 缺陷类型 */
    private String defectType;
    
    /** 产品名称 */
    private String productName;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setDefectRecordId(Integer defectRecordId) 
    {
        this.defectRecordId = defectRecordId;
    }

    public Integer getDefectRecordId() 
    {
        return defectRecordId;
    }
    public void setRepairType(String repairType) 
    {
        this.repairType = repairType;
    }

    public String getRepairType() 
    {
        return repairType;
    }
    public void setRepairLevel(String repairLevel) 
    {
        this.repairLevel = repairLevel;
    }

    public String getRepairLevel() 
    {
        return repairLevel;
    }
    public void setAssignTo(String assignTo) 
    {
        this.assignTo = assignTo;
    }

    public String getAssignTo() 
    {
        return assignTo;
    }
    public void setPlannedDate(String plannedDate) 
    {
        this.plannedDate = plannedDate;
    }

    public String getPlannedDate() 
    {
        return plannedDate;
    }
    public void setActualDate(String actualDate) 
    {
        this.actualDate = actualDate;
    }

    public String getActualDate() 
    {
        return actualDate;
    }
    public void setRepairResult(String repairResult) 
    {
        this.repairResult = repairResult;
    }

    public String getRepairResult() 
    {
        return repairResult;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getSeverity() {
        return severity;
    }

    public void setSeverity(String severity) {
        this.severity = severity;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getDefectType() {
        return defectType;
    }

    public void setDefectType(String defectType) {
        this.defectType = defectType;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("defectRecordId", getDefectRecordId())
            .append("repairType", getRepairType())
            .append("repairLevel", getRepairLevel())
            .append("assignTo", getAssignTo())
            .append("plannedDate", getPlannedDate())
            .append("actualDate", getActualDate())
            .append("repairResult", getRepairResult())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
} 